{layout name="layout/index" /}
<div class="panel panel-default panel-intro">
    <div class="panel-heading" style=" padding-top:5px;">
        <ul class="nav nav-tabs">
                     <li class="active"><a href="#tab_1" data-toggle="tab">基本设置</a></li>
                   <li ><a href="#tab_2" data-toggle="tab">其他设置</a></li> 
        </ul>
    </div>
<div class="panel-body is-dialog">    
<form id="edit-form" class="form-horizontal form-ajax ajax-no-close" role="form" data-toggle="validator" method="post">      
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="tab_1">
    <div class="form-group">
    {notempty name="info.vod_id"}
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">视频ID:</label>
        <div class="col-xs-12 col-sm-1">
         <input type="text" name="role_vid" value="{$info.role_vid|default=''}" class="form-control"  readonly>
         </div>
          <label for="c-keywords" class="control-label col-xs-12" style="width:auto">视频名称:</label>
       <div class="col-xs-12 col-sm-2">
         <input type="text" name="vod_name" value="{$info.vod_name|default=''}" class="form-control"  readonly>
        </div>
           <label for="c-keywords" class="control-label col-xs-12" style="width:auto">视频分类:</label>
       <div class="col-xs-12 col-sm-2">
         <input type="text" name="vod_list_name" value="{:getlistname($info['vod_cid'],'list_name')}" class="form-control"  readonly>
        </div> 
        {else /} 
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">视频ID:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="role_vid" value="{$info.role_vid|default=''}" class="form-control">
         </div> 
         {/notempty} 
      <label for="c-keywords" class="control-label col-xs-12" style="width:auto">角色分类:</label>
         <div class="col-xs-12 col-sm-2">
          <select name="role_cid" class="form-control selectpicker" data-rule="required">
<option value="">选择分类</option> 
{volist name="listrole" id="vo"}<option value="{$vo.list_id}" {if isset($info['role_cid'])} {eq name="vo.list_id" value="$info['role_cid']"}selected{/eq}{/if}>{$vo.list_name}</option>
{if isset($vo['son'])}{volist name="vo['son']" id="splist"}<option value="{$splist.list_id}" {eq name="splist.list_id" value="$info['role_cid']"}selected{/eq}>├ {$splist.list_name}</option>{/volist}{/if}
{/volist}
</select>
         </div>
         <span style="line-height:30px;">推送到百度：</span><input name="insertseo" type="checkbox" {empty name="info['role_id']"}checked{/empty} title="勾选推送到百度" style="border:none;width:auto; position:relative; top:2px;margin-bottom:3px;margin-right:8px;" >                        
    </div>  
    <div class="form-group" style="position: relative;">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">角色名:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="role_name" value="{$info.role_name|default=''}" class="form-control">
         </div> 
         <label for="c-keywords" class="control-label col-xs-12" style="width:auto">演员名称:</label>
         <div class="col-xs-12 col-sm-2">
         <input type="text" name="role_star" value="{$info.role_star|default=''}" class="form-control">
         </div> 
                   
    </div>  
    
            <div class="form-group">
            <label for="c-image" class="control-label col-xs-12 col-sm-1">角色图片:</label>
            <div class="col-xs-12 col-sm-8">
            <div class="form-inline">
                <input id="c-image" class="form-control" size="90" name="role_pic" type="text" value="{$info['role_pic']|default=''}">
                <span style="margin-left:8px;"><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/*" data-multipart='{"sid":"role"}' data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> 上传</button></span>
                <ul class="row list-inline plupload-preview" id="p-image"></ul>
            </div>
            </div>
          </div>     
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">角色介绍:</label>
        <div class="col-xs-12 col-sm-11">
         <textarea class="summernote" name="role_content" style="height:200px;">{:zanpian_news_img_array($info['role_content'])}</textarea>
        </div>
    </div> 
     <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">角色排序:</label>
        <div class="col-xs-12" style="width:auto">
         <input type="text" name="role_oid"  value="{$info.role_oid|default=''}" class="form-control" data-tip="越小越前面" style="text-align:center;width:80px;">
        </div>
    </div>       
       <div class="form-group">
                <label for="content" class="control-label col-xs-12 col-sm-1">角色状态:</label>
                <div class="col-xs-12" style="width:auto">
                    <select name="role_status" class="form-control selectpicker">
                        <option value="1">显示</option>
                        <option value="0" {eq name="info.role_status" value="0" }selected{/eq}>隐藏</option>
                    </select>
                </div>
            </div>  
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">角色时间:</label>
        <div class="col-xs-12" style="width:auto">
         <input type="text" name="role_addtime" value="{notempty name="info.role_addtime"}{$info.role_addtime|date='Y-m-d H:i:s',###}{else/}{:date('Y-m-d H:i:s',time())}{/notempty}" class="form-control">
        </div>
        <input name="checktime" type="checkbox" style="border:none;width:auto;position:relative; top:5px;" value="1" {notempty name="info.admin_time_edit"}checked{/notempty} title="勾选则使用系统当前时间">
    </div>             
            
     </div>
<div class="tab-pane fade" id="tab_2">
     <div class="form-group">
                <label for="content" class="control-label col-xs-12 col-sm-1">推荐星级:</label>
                <div class="col-xs-12 col-sm-6" style="position:relative; top:5px;">
                 <input name="role_stars" id="role_stars" type="hidden" value="{$info.role_stars|default=''}">{volist name=":admin_star_arr($info.role_stars)" id="ajaxstar"}<img src="{$config.site.cdnurl}admin/zanpiancms/img/star{$ajaxstar}.gif" id="role_{$i}" class="addstars">{/volist}
                </div>
            </div>          
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">标题颜色:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="role_color"  value="{$info.role_color|default=''}" class="form-control" data-tip="点击选色" style="width:80px;text-align:center" id="color">
        </div>
    </div>
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">总人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="role_hits"  value="{$info.role_hits|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>    
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">月人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="role_hits_month"  value="{$info.role_hits_month|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div> 
       <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">周人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="role_hits_week"  value="{$info.role_hits_week|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>    
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">日人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="role_hits_day"  value="{$info.role_hits_day|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>         
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">独立模版:</label>
        <div class="col-xs-12 col-sm-3">
         <input type="text" name="role_skin"  value="{$info.role_skin|default=''}" class="form-control">
        </div>
    </div>          
     </div>     
</div>     
{notempty name="info.role_id"} 
<input type="hidden" name="role_id" value="{$info['role_id']|default=''}"> 
{/notempty}
    <div class="form-group hidden layer-footer">
      <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
            <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();"> 关闭</button>
        </div>
    </div>
  </form>      
</div>
</div>